﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>{{PageTitle}}</title>
</head>
<body>
    <script type="text/javascript" src="~/App_Themes/Scripts/ueditor/editor_config.js"></script>
    <script type="text/javascript" src="~/App_Themes/Scripts/ueditor/editor_all_min.js"></script>
    <link rel="stylesheet" href="~/App_Themes/Scripts/ueditor/themes/default/ueditor.css" />
    <div style="margin: 0 auto;">
        <form action="~/admin/Article/AddArticle" method="post">
        <div class="idealWrap">
            <label>
                登录名:</label>
            <input type="text" name="username" />
        </div>
        <div class="idealWrap">
            <label>
                Last Name:</label>
            <input type="text" />
        </div>
        <div class="idealWrap">
            <label>
                密码:</label>
            <input type="password" name="userPwd" />
        </div>
        <div class="idealWrap">
            <label>
                Select:</label>
            <select id="options" title="Select option">
                <option>Hesterna studiis</option>
                <option>Nuptui tradiditque</option>
                <option>Nuda dulcis</option>
                <option>Unam lacrimae</option>
                <option>Euro in</option>
                <option>Lorem ipsum</option>
                <option>Notus ingreditur</option>
                <option>Mancipia in</option>
            </select>
        </div>
        <div class="idealWrap">
            <label>
                Checkboxes:</label>
            <p>
                <label>
                    <input type="checkbox" name="checks" />Lorem</label><br />
                <label>
                    <input type="checkbox" name="checks" />Tyrium</label><br />
                <label>
                    <input type="checkbox" name="checks" />Illum</label>
            </p>
        </div>
        <div class="idealWrap">
            <label>
                可选项:</label>
            <p>
                <label>
                    <input type="radio" name="radios" checked="checked" />记住账号</label><br />
                <label>
                    <input type="radio" name="radios" />记住密码</label><br />
            </p>
        </div>
        <div class="idealWrap">
            <label>
                Comments:</label>
            <div id="myEditor">
            </div>
            <script type="text/javascript">
                var editor = new baidu.editor.ui.Editor();
                editor.render("myEditor");
            </script>
        </div>
        <div class="idealWrap">
            <label>
                &nbsp;</label>
            <input type="button" onclick="submit1()" value="登陆" />
            <input type="button" id="but" value="重置" />
        </div>
        </form>
    </div>
    <script type="text/javascript">
        function submit1() {
            $.post("/admin/Article/AddArticle", { Content: escape(editor.getContent()) }, function (result) { alert(unescape(result)) });
        }
    </script>
</body>
</html>
